//
//  ZZPopMenuItem.h
//  ZZPopMenu
//
//  Created by 科大 on 2024/3/1.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

const static CGFloat ZLLineHeight = 40;
const static CGFloat ZLMaxWidth = 200;

typedef NS_ENUM(NSUInteger, ZZItemDirection) {
    ZZItemDirectionHorizontal,  // 水平
    ZZItemDirectionVertical,   // 竖直
};

@interface ZZPopMenuItem : NSObject
/// 标题
@property (nonatomic, copy) NSString *title;
/// 图片
@property (nonatomic, copy) NSString *imageName;
/// 颜色
@property (nonatomic, strong) UIColor *color;
/// 字号
@property (nonatomic, strong) UIFont *font;
/// 方向
@property (nonatomic, assign) ZZItemDirection direction;

+ (instancetype)itemWithTitle:(NSString *)title;
+ (instancetype)itemWithTitle:(NSString *)title imageName:(NSString *)imageName;
+ (instancetype)itemWithTitle:(NSString *)title imageName:(NSString *)imageName color:(UIColor *)color;
+ (instancetype)itemWithTitle:(NSString *)title imageName:(NSString *)imageName color:(UIColor *)color font:(UIFont *)font;
+ (instancetype)itemWithTitle:(NSString *)title imageName:(NSString *)imageName color:(UIColor *)color font:(UIFont *)font direction:(ZZItemDirection)direction;

- (CGSize)itemSize;

@end

NS_ASSUME_NONNULL_END
